package FunctionInterface.demo;

public class Test {


    public static void main(String[] args){
        // :: 关键字来引用类的构造器。
        PersionFactory<Person> personPersionFactory = Person::new;
        Person person = personPersionFactory.create("Peter","Parker");
        System.out.println(person.getFirstName());


    }
}
